<?php

namespace Admin\Model;

use Think\Model\RelationModel;
class ArticleModel extends RelationModel{//自动关联
    protected $_link=array(
        'category'=>self::BELONGS_TO,
    );
    protected $_auto = array(
        array("time",UNik,3,'callback'),
    );
    function UNik($time){
            return  strtotime($time);
    }

}

